From 8b397301c4ed87caafac86c3aaee47ccb644849f Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Fri, 13 May 2016 10:22:02 -0700 Subject: [PATCH] tests: Ensure mutable deployments from libostreetest When creating sysroots with libostreetest, we don't get the benefit of the OSTREE_SYSROOT_DEBUG setting in libtest.sh. That means we'll get immutable deployments that can't be easily cleaned up. Ensure the environment variable is set before creating new sysroots. It would be nice to set the debug flags directly, but that's private API that isn't currently pulled into libostreetest. Closes: #372 Approved by: cgwalters --- tests/libostreetest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/libostreetest.c b/tests/libostreetest.c index 81f743e9..d0eb3e81 100644 --- a/tests/libostreetest.c +++ b/tests/libostreetest.c @@ -94,6 +94,9 @@ ot_test_setup_sysroot (GCancellable *cancellable, if (!ot_test_run_libtest ("setup_os_repository \"archive-z2\" \"syslinux\"", error)) goto out; + /* Make sure deployments are mutable */ + g_setenv ("OSTREE_SYSROOT_DEBUG", "mutable-deployments", TRUE); + ret_sysroot = ostree_sysroot_new (sysroot_path); ret = TRUE; -- 2.30.2